<template>
  <div>
    <img-display-list :imgList="imgList"></img-display-list>
  </div>
</template>

<script>
  import OnlineAPI from '../../repo/api/OnlineAPI'
  import imgDisplayList from '@/components/img-display-list'
  export default {
    name: 'pics',
    components:{
      imgDisplayList
    },
    data() {
      return {
        imgList: []
      }
    },
    mounted() {
      let params = this.$route.params;
      OnlineAPI.getParam().then((result) => {
        this.imgList = result.pics[params.key]
      })
    }
  }
</script>

<style scoped>

</style>
